from date import students
app_runing = True
error_login_count = 0
while app_runing:
    user =input("请输入用户名：")
    password = input("请输入密码：")
    s = None
 #从
    for student in students:
        if student["account"] == user:
            s = student
            break
    if s != None and str(s["password"]) ==password:
    
        app_runing = False
        print("登录成功")
    else:
        print("登录失败！用户名或密码错误。")
        error_login_count += 1
        if error_login_count >=3:
            print("登录次数过多，请稍后再试")
            app_runing = False